- Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
- Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""NES Game Genie encoder/decoder. | |
Usage: | |
nesgenie enc <addr> <value> [cmp] | |
nesgenie dec <code> | |
""" |
cd\Program Files\Microsoft Office\Office16 | |
cd\Program Files (x86)\Microsoft Office\Office16 | |
cscript OSPP.VBS /sethst:kms.digiboy.ir | |
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
slmgr.vbs /ckms |
{ | |
"quotes": [ | |
{ | |
"quote": "Мені важко говорити про те, що важливо для мене. Мене можна побачити тільки в діях.", | |
"author": "Леся Українка" | |
}, | |
{ | |
"quote": "Найголовнішим є не відчуття щастя, а наше прагнення до щастя.", | |
"author": "Тарас Шевченко" | |
}, |
{ | |
"src": "/tmp/scratch-desktop/", | |
"dest": "/tmp/", | |
"arch": "i386", | |
"icon": "/tmp/scratch-desktop/resources/Icon.png", | |
"categories": [ | |
"Education" | |
] | |
} |
import { redirect, type LoaderFunctionArgs } from '@remix-run/node' | |
import { Form, useLoaderData } from '@remix-run/react' | |
import { sessionCookie } from '../session.server' | |
export async function loader({ request }: LoaderFunctionArgs) { | |
const cookieHeader = request.headers.get('Cookie') | |
const cookie = await sessionCookie.parse(cookieHeader) | |
if (!cookie) { | |
return redirect('/login') | |
} |
name: "Publish to GitHub Pages" | |
env: | |
GODOT_VERSION: 4.1.2 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main |
To setup some key bindings in Xcode with the same like VSCode
Add this to /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
Thanks to: https://gist.github.com/emotality/b1bcb2bb8a07921f9c8cad1c969daedf
<key>Duplication</key>
<dict>
brew install vagrant qemu | |
#Due to dependency errors, we must install vbguest first.. | |
vagrant plugin install vagrant-vbguest | |
vagrant plugin install vagrant-qemu | |
#cd to working dir you like to keep your vagrant files | |
cd ~/VM-and-containers/VagrantMachines/M1-vagrantfiles/ubuntu18-generic-64/ | |
#Create a vagrant file | |
$EDITOR Vagrantfile |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |